import { createRouter, createWebHistory } from 'vue-router'
import Chat from '../views/ChatUI/Chat.vue'
import Settings from '../views/Settings/Settings.vue'
import Home from '../views/Home/Home.vue'
import FloodForecast from '../views/FloodForecast/FloodForecast.vue'
import Query from '../views/Query/Query.vue'
import FloodHistory from '../views/FloodHistory/FloodHistory.vue'
import History from '../views/ChatUI/History.vue'

const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/chat',
      name: 'chat',
      component: Chat
    },
    {
      path: '/query',
      name: 'query',
      component: Query
    },
    {
      path: '/settings',
      name: 'settings',
      component: Settings
    },
    {
      path: '/flood-history',
      name: 'floodHistory',
      component: FloodHistory
    },
    {
      path: '/chat-history',
      name: 'chatHistory',
      component: History
    }
  ]
})

export default router